BOT_NAME = 'itkz'

SPIDER_MODULES = ['itkz.spiders']
NEWSPIDER_MODULE = 'itkz.spiders'

# 是否遵循爬虫协议
ROBOTSTXT_OBEY = False

# mysql数据库信息
MYSQL_HOST = 't245.samge.run'
MYSQL_USER = 'root'
MYSQL_PASSWORD = ':54s6S9bErq8Gd2}J]D+jmVY1~3Q,afN'
MYSQL_DATABASE = 'SamgeData'
# MYSQL_HOST = '192.168.1.101'
# MYSQL_USER = 'samge'
# MYSQL_PASSWORD = 'Ilu86769394//'
# MYSQL_DATABASE = 'SamgeData'

# redis数据库信息，存放代理ip地址
REDIS_HOST = '192.168.2.193'
REDIS_PORT = '8920'
REDIS_DB = '1'
REDIS_PASSWORD = 'M596PB4T48KC'

# 是否调试（测试）模式，跑正式时需要改为False
IS_DEBUG = False

# 判断使用splash进行请求的标记
SPLASH_TAG = 'use_splash=1'
# scrapy_splash 服务，192.168.9.200中运行nginx，负载9.201、9.202、9.203三个splash子节点
SPLASH_URL = 'http://192.168.9.200:8050'
# splash禁止图片加载，加快响应速度
SPLASH_ARGS = {'wait': 1, 'images': 0}
# SPLASH_ARGS = {'wait': 1, 'viewport': '1024x2480', 'images': 0}
# SPLASH_ARGS = {'wait': 1, 'viewport': '1024x2480', 'timeout': 20, 'images': 0, 'resource_timeout': 60}

# 抓取完毕的文字提示
CLOSE_SPIDER_TIP = '抓取完毕'

# 爬虫传命中的样式数据到gui的标记
SIGNAL_STYLE = "命中的样式#￥#【{}】#￥#"
SIGNAL_STYLE_RE = "命中的样式#￥#【(.*)】#￥#"
# 爬虫响应内容 response.txt 数据到gui的标记
SIGNAL_RESPONSE = "SIGNAL_RESPONSE#￥#="
